package org.shock.ss.sms.service.helpdoc.impl;

import org.shock.ss.sms.bean.helpdoc.Helpdoc;
import org.shock.ss.sms.commons.db.ProxoolDbPool;
import org.shock.ss.sms.commons.dao.BaseDao;
import org.shock.ss.sms.commons.service.impl.BaseServiceImpl;
import org.shock.ss.sms.service.helpdoc.HelpdocService;

public class HelpdocServiceImpl extends BaseServiceImpl implements HelpdocService {
	public HelpdocServiceImpl(BaseDao dao) {
		super(dao);
	}

	public void doAddHelpdoc(Helpdoc bean) throws Exception {
		try {
			tx = ProxoolDbPool.getTranManager();
			tx.beginTransaction();
			dao.add(bean);
			tx.commitAndClose();
		} catch (Exception e) {
			if (tx != null)
				tx.rollbackAndClose();
			throw e;
		}

	}
}